Skip to content

🐞 Keycloak/Admin Portal: Can't publish on tenants with passkeys - #2829

Open
BelSequent wants to merge 7 commits into
mainfrom
fix/meta-12279-rev/main
Open

🐞 Keycloak/Admin Portal: Can't publish on tenants with passkeys#2829
BelSequent wants to merge 7 commits into
mainfrom
fix/meta-12279-rev/main

Conversation

@BelSequent

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings July 7, 2026 08:31
@BelSequent
BelSequent marked this pull request as draft July 7, 2026 08:31
@BelSequent
BelSequent removed the request for review from Copilot July 7, 2026 08:31
@BelSequent
BelSequent marked this pull request as ready for review July 7, 2026 10:34
Copilot AI review requested due to automatic review settings July 7, 2026 10:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates local development configuration and Keycloak realm provisioning so tenants using passkeys can successfully complete login/redirect flows during publishing.

Changes:

  • Extend Keycloak client redirect_uris for voting portal clients to include VOTING_PORTAL_URL/*.
  • Normalize local dev URLs in portal global-settings.json and .devcontainer/.env.development from localhost to 127.0.0.1 for voting/ballot-verifier.
  • Update devcontainer auto-config script to invoke step-cli (instead of cli).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/voting-portal/public/global-settings.json Switch ballot verifier base URL to 127.0.0.1 for local dev.
packages/sequent-core/src/services/keycloak/realm.rs Add voting portal URL pattern to Keycloak redirect URIs for voting portal clients.
packages/admin-portal/public/global-settings.json Switch voting portal base URL to 127.0.0.1 for local dev.
.devcontainer/scripts/config-cli.sh Use step-cli for devcontainer auto-configuration.
.devcontainer/.env.development Update local dev URLs for ballot verifier and voting portal.
Comments suppressed due to low confidence (1)

.devcontainer/scripts/config-cli.sh:19

  • The script checks $? after the if block, so when required env vars are missing the last command is the echo, resulting in a false “configured successfully” message. Capture the exit code from step-cli explicitly and treat the missing-env branch as a failure (or exit early).
    step-cli step config \
        --tenant-id "$SUPER_ADMIN_TENANT_ID" \
        --endpoint-url "$HASURA_ENDPOINT" \
        --keycloak-url "$KEYCLOAK_URL" \
        --keycloak-user "$KEYCLOAK_ADMIN" \

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .devcontainer/.env.development Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants